<?php
include_once root.'/library/httprequesthelper.php';
include_once root.'/library/class.phpmailer.php';
include_once root.'/library/class.smtp.php';
class MailExtend extends HttpRequestHelper
{
    public $to='';
    public $submit='';
    public $body='';
    function __construct()
    {
        
    }
    public function send($debug=0)
    {
        $email=new PHPMailer();
        $email->SMTPDebug=$debug;
        $email->isSMTP();
        $email->SMTPAuth=TRUE;
        $email->Host=smtphost;
        $email->Username=smtpusername;
        $email->Password=smtppassword;
        $email->CharSet='utf-8';
        $email->From=smtpusername;
        $email->addAddress($this->to);
        $email->Subject=$this->submit;
        $email->Body=$this->body;
        $email->send();
    }
}